import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const documentManager: AppRouteModule = {
  path: '/documentManager',
  name: 'documentManager',
  component: LAYOUT,
  redirect: '/documentManager/DocumentWorkPlace',
  meta: {
    orderNo: 4,
    icon: 'ion:newspaper-outline',
    title: t('routes.demo.documentManager.DocumentManager'),
  },
  children: [
    {
      path: 'documentWorkPlace',
      name: 'DocumentWorkPlace',
      meta: {
        title: t('routes.demo.documentManager.DocumentWorkPlace'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/documentManager/index.vue'),
    },
    {
      path: 'printManagement',
      name: 'PrintManagement',
      meta: {
        title: t('routes.demo.documentManager.printManagement'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/documentManager/printManagement.vue'),
    },
    {
      path: 'directoryManager',
      name: 'directoryManager',
      meta: {
        title: t('routes.demo.documentManager.directoryManager'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/documentManager/components/directoryManager.vue'),
    },
  ],
};

export default documentManager;
